package com.hisense.ovcloud.mqtt.monitor.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "mqtt.client")
@Configuration
@Data
public class MqttClientConfig {
    private String brokerHost = "emqx";
    private int plainTextPort = 1883;
    private int sslPort = 8883;
    private int maxMsgSize = 100_000_000;
    private boolean cleanSession;

    private int cmdRetryTimes = Integer.MAX_VALUE;
    private int cmdRetryInterval = 3000;

    private String domain = "16";
    private String subDomain = "36";
    private String wifiId = "00001464db1ee1f4";
    private String prekey = "7ca5b1cc2ca7112b31aa1734e491cde6";

    private int waitTime = 2000;
    private int connectTimeout = 5000;

    private String updateConMsg = "OUNBejNjWkY4VTBXMHBrN2JxQzk1ZDlhR2lZWjF5UXhnRDhXZXBFSDdaakdWUnJURkNoSHVaajNCU0orM0VPMg==";
    private String cmdMsg = "A9kPQJZmAAAAAAMAJAAAyrc=";
}
